package diaosidadui.abstract_test;

public class AnimalDemo01 {
    public static void main(String[] args) {
        Cat c1 = new Cat();
        c1.setName("汤姆");
        c1.setAge(2);
        System.out.println(c1.getName()+"------"+c1.getAge());
        c1.eat(c1.getName());
        System.out.println("--------------------------");

        Cat c2 = new Cat("Kittiy",3);
        System.out.println(c2.getName()+"------"+c2.getAge());
        c1.eat(c2.getName());
    }
}
